import React, { Component } from 'React';
import { View, Text } from '@tarojs/components'
import { connect } from 'react-redux'

import './style.less';

@connect(({ shopCart }) => ({
  ...shopCart,
}))
class Index extends Component {
  componentDidMount = () => {
  };

  //分享
  onShareAppMessage () {
    return {
      title: '基于Taro框架开发的商城',
      path: '/pages/shopCart/index',
    };
  }

  // 小程序上拉加载
  onReachBottom () {

  }

  render () {
    const { text } = this.props;
    return (
      <View >
        <Text>{text}</Text>
      </View>
    );
  }
}

export default Index;
